package org.example.domain.user_raffle.service.engine;

import org.example.domain.user_raffle.model.entity.ActivityStrategyPrizeEntity;

import java.util.List;
import java.util.Map;

/**
 * @author lxc18
 * @date 2025/3/29 19:50
 * @description RaffleHandlerNode
 */
public abstract class RaffleHandlerNode {
    protected RaffleHandlerNode next;
    //全部的策略实体
    protected List<ActivityStrategyPrizeEntity> strategyPrizeEntities;


    public void setNext(RaffleHandlerNode next) {
        this.next = next;
    }

    public abstract List<Long> doHandler(Long userId, Long activityId,int usedQuota, Map<String, ActivityStrategyPrizeEntity> strategyPrizeEntities);
}
